(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/dos.h>
LONG Seek()
SYNOPSIS
BPTR file
LONG position
LONG mode

LOCATION
In DOSBase at offset 11
FUNCTION
Changes the actual read/write position in a file and/or reads the actual position, e.g to get the actual position do a Seek(file,0,OFFSET_CURRENT).

This function may fail (obviously) on certain devices such as pipes or console handlers.

INPUTS
file
filehandle
position
relative offset in bytes (positive, negative or 0).
mode
Where to count from. Either OFFSET_BEGINNING, OFFSET_CURRENT or OFFSET_END.
RESULT
Absolute position in bytes before the Seek(), -1 if an error happened. IoErr() will give additional information in that case.

NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column

24.10.1996 aros
Use the official AROS macros over the __AROS versions.
13.08.1996 digulla
Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h" Replaced __AROS_LA by __AROS_LHA
01.08.1996 digulla
Added standard header for all files
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS